#include <iostream>
#include <string>

using namespace std;
class User
{
private:
public:
    int id;
    string name;
    string age;
    string tel;
    string addr;

    User() = default;

    string get_name()
    {
        return this->name;
    }
    void set_name(string name)
    {
        this->name = name;
    }

    int get_id()
    {
        return this->id;
    }

    void set_id(int id)
    {
        this->id = id;
    }

    string get_age()
    {
        return this->age;
    }
    void set_age(string age)
    {
        this->age = age;
    }

    string get_tel()
    {
        return this->tel;
    }
    void set_tel(string tel)
    {
        this->tel = tel;
    }

    string get_addr()
    {
        return this->addr;
    }
    void set_addr(string addr)
    {
        this->addr = addr;
    }

    friend ostream & operator<<(ostream &out, const User &info)
    {
        out << "id: " << info.id << "name: " << info.name << "age: " << info.age
                 << "tel: " << info.tel << "addr: " << info.addr << endl;

        return out;
    }

    User &operator= (User &info)
    {
        this->name = info.name;
        this->age = info.age;
        this->tel = info.tel;
        this->addr = info.addr;

        return *this;
    }

    friend class Option;
    friend class Sql;
};
